package com.vcg.oauth.server;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;

/**
 * Created by wuyu on 2016/7/24.
 */
@Controller
@SessionAttributes("authorizationRequest")
public class LoginController {

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "login";
    }

    @RequestMapping(value = "/oauth/confirm_access", method = RequestMethod.GET)
    public String confirmAccess() {
        return "authorize";
    }
}
